// 编写好规则
export const rules = {
  app_name: [
    {
      required: true,
      message: 'App name is required~',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-Z]{3,10}$/,
      message: 'The app name length between 3-10~',
      trigger: 'blur'
    }
  ],
  table_name: [
    {
      required: true,
      message: 'Table name is required~',
      trigger: 'blur'
    },
    {
      pattern: /^[a-zA-Z]{3,10}$/,
      message: 'The table name length between 3-10~',
      trigger: 'blur'
    }
  ]
}
